<?php

use Illuminate\Database\Seeder;
use App\Models\V1\Permission;
use Carbon\Carbon;

class PermissionDataSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Permission::create([
            'name' => 'menu_system',
            'display_name' => '控制台',
            'description' => '显示控制台菜单',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'menu_basicData',
            'display_name' => '基础数据',
            'description' => '显示基础数据菜单',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'menu_system_personal',
            'display_name' => '个人中心',
            'description' => '显示个人中心',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'system_personal_info_show',
            'display_name' => '个人信息',
            'description' => '显示个人信息',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);


        Permission::create([
            'name' => 'system_personal_modify_pwd_show',
            'display_name' => '修改密码',
            'description' => '显示修改密码',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'menu_system_message',
            'display_name' => '消息中心',
            'description' => '显示消息中心',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'system_message_system_show',
            'display_name' => '系统消息',
            'description' => '显示系统消息',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);


        Permission::create([
            'name' => 'system_message_system_operate',
            'display_name' => '系统消息操作',
            'description' => '对系统消息进行删除等操作',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'basicData_customer_show',
            'display_name' => '客户',
            'description' => '显示客户',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'basicData_maintainer_show',
            'display_name' => '维护人员',
            'description' => '显示维护人员',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'basicData_transformer_show',
            'display_name' => '变压器',
            'description' => '显示变压器',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'basicData_collector_show',
            'display_name' => '采集器',
            'description' => '显示采集器',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'menu_basicData_professional',
            'display_name' => '业务数据',
            'description' => '显示业务数据',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'basicData_collect_transformers_show',
            'display_name' => '采集数据',
            'description' => '显示采集的数据',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'menu_setting',
            'display_name' => '系统设置',
            'description' => '显示系统设置',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'menu_setting_permission',
            'display_name' => '用户权限',
            'description' => '用户权限',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);


        Permission::create([
            'name' => 'setting_permission_users_show',
            'display_name' => '用户管理',
            'description' => '用户管理',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

        Permission::create([
            'name' => 'setting_permission_roles_show',
            'display_name' => '角色管理',
            'description' => '显示角色管理',
            'created_at' => Carbon::now()->toDateTimeString(),
            'updated_at' => Carbon::now()->toDateTimeString(),
        ]);

//        Permission::create([
//            'name' => 'setting_permission_permission_show',
//            'display_name' => '权限管理',
//            'description' => '显示权限管理',
//            'created_at' => Carbon::now()->toDateTimeString(),
//            'updated_at' => Carbon::now()->toDateTimeString(),
//        ]);

    }
}
